{% extends "base.html" %}
<body>
{% load i18n %}
{% block detail %}

    <div class="main">
        <div class="login">
            <h2>{% trans 'User Login' %}</h2>

            <form class="nice" method="POST" action="/login/">{% csrf_token %}
                {% if error %}
                    <div class="worn">{{ error }}</div>
                {% endif %}
                <dl class="clearfix">
                    <dt>{% trans 'Username' %}：</dt>
                    <dd><input type="text" name="username" class="text"/></dd>
                </dl>
                <dl class="clearfix">
                    <dt>{% trans 'Password' %}：</dt>
                    <dd><input type="password" name="password" class="text"/></dd>
                </dl>
                <input type="hidden" name="next" value="{{ next }}">

                <div class="btnLine"><input type="submit" value="{% trans 'Login' %}"/><a
                        href="/my/password/forgot/">{% trans 'Forgot Password' %}</a>|<a
                        href="/signup/">{% trans 'Register' %}</a></div>
            </form>
        </div>

    </div>

{% endblock %}
</body>
</html>